package com.homework.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class MistakeSubjectDTO {

    private Long id;

    @NotBlank(message = "科目名称不能为空")
    @Size(max = 50, message = "科目名称长度不能超过50个字符")
    private String name;
}